import { createRouter, createWebHashHistory } from 'vue-router'
// import Home from '../views/Home.vue'

const routes = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/Login.vue')
  },
  {
    path: '/register',
    name: 'Register',
    component: () => import('../views/Register.vue')
  },

  {
    path: '/index',
    name: 'Index',
    component: ()=>import("@/views/Index"),
    children:[
        {
        path:'/lunbo',
        name: 'Lunbo',
        component: ()=>import('../views/Lunbo.vue'),
      },
      {
        path:'/pintu',
        name: 'PinTu',
        component: ()=>import('../views/PinTu.vue'),
      },
      {
        path:'/blindbox',
        name: 'BlindBox',
        component: ()=>import('../views/BlindBox.vue'),
      },
      {
        path:'/personal',
        name: 'Personal',
        component: ()=>import('../views/Personal.vue'),
      },
      {
        path:'/signin',
        name: 'SignIn',
        component: ()=>import('../views/SignIn.vue'),
      },
      {
        path:'/blindboxmsg',
        name: 'BlindBoxMsg',
        component: ()=>import('../views/BlindBoxMsg.vue'),
      },
      {
        path:'/picturemsg',
        name: 'PictureMsg',
        component: ()=>import('../views/PictureMsg.vue'),
      },
      {
        path:'/integralrecord',
        name: 'IntegralRecord',
        component: ()=>import('../views/IntegralRecord.vue'),
      },
      ],

  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
